﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManageList.aspx.cs"
    Inherits="HQWeb.FileManage.FileManageList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>文件上传</title>
    <link type="text/css" rel="Stylesheet" href="../Styles/theme.css" />
    <link type="text/css" rel="Stylesheet" href="../Styles/StyleSheet.css" />
    <link type="text/css" rel="Stylesheet" href="../Styles/Site.css" />
    <script type="text/javascript" src="../Scripts/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="../Scripts/view/jquery.blockUI.js"></script>
    <script type="text/javascript" src="../Scripts/upload.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.7.2.custom.js"></script>
    <script language="javascript" type="text/javascript" src="../Scripts/uploadgetproject.js"></script>
    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        #ui
        {
            color: #aaaaaa;
        }
        .ui-progressbar-value
        {
            background-image: url(../Styles/images/pbar-ani.gif);
        }
        .percentText
        {
            line-height: 20px;
            font-size: 12px;
            font-weight: bold;
            color: #ffffff;
            text-align: center;
        }
        .ui-progressbar
        {
            height: 2em;
            text-align: left;
        }
        .ui-progressbar .ui-progressbar-value
        {
            margin: -1px;
            height: 100%;
        }
        .mainupload
        {
            width: 0;
            border: 0;
            -moz-opacity: 0.12;
            background-color: #000;
            margin: 0;
            padding: 0;
            height: 22;
        }
        body
        {
            font: normal 16px auto "Trebuchet MS" , Verdana, Arial, Helvetica, sans-serif;
            background: #EEF2FB;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="display: none">
        <object id="FileUp" classid="clsid:0A049261-8592-494D-8AAE-0787B3E14153" codebase="FileManage.cab#version=1,0,0,0">
        </object>
    </div>
    <%--<div id="uploadfield" style="width: 80%; border: 3px solid #808080">
        <br />
        <div>
            &nbsp;&nbsp;<label>上传文件类型：</label>&nbsp;&nbsp;
            <input type="radio" onclick="Checkchange('photo')" checked="checked" id="photo" name="file" /><label>图片</label>
            &nbsp;&nbsp;<input type="radio" id="video" onclick="Checkchange('video')" name="file" /><label>视频</label>
        </div>
        <br />
        <div>
            &nbsp;&nbsp;<label>
                文件名称：</label><input type="text" oninput="titlechange()" runat="server" style="width: 256px"
                    onpropertychange="titlechange()" id="txtName" />
            <label>
                项目名称：</label><input style="width: 256px;" url="true" id="Text1" oninput="titlechange()"
                    onpropertychange="titlechange()" type="text" runat="server" />
            <div style="display: none; position: fixed;" id="allSitesBoxHdl" class="classlist"
                onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">
                <ul id="allSitesBoxContent">
                </ul>
            </div>
        </div>
        <br />
        <div>
            &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="checkbranch" onclick="titlechange()"
                checked="checked" runat="server" /><label runat="server" id="lblbranch"></label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                    id="checkdate" type="checkbox" onclick="titlechange()" checked="checked" runat="server" /><input
                        id="inputdate" runat="server" oninput="titlechange()" onpropertychange="titlechange()" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
            <img onclick="WdatePicker({el:'inputdate'})" src="../My97DatePicker/skin/datePicker.gif"
                align="middle" width="16" height="22"></div>
        <br />
        <div>
            &nbsp;&nbsp;<label>
                文件主题：</label><input type="text" runat="server" readonly="readonly" style="width: 256px"
                    id="txttitle" />
        </div>
        <br />
        <div>
            &nbsp;&nbsp;<label>
                文件路径：</label><input type="file" style="width: 256px" id="mainupload" /></div>
        <br />
        <div style="display: none" id="prephoto">
            <div>
                &nbsp;&nbsp;<label>
                    预览图片：</label><input type="file" style="width: 256px" id="preupload" />
            </div>
            <br />
        </div>
        <div style="text-align: center"> 
            <input type="button" id="uploadclick" onclick="fileupload()" value="上 传" />
            &nbsp;&nbsp;</div>
        <br />
    </div>--%>
    <div id="uploadfield" style="width: 100%;">
        <table width="90%">
            <tr>
                <td colspan="4" class="title">
                    <asp:Label runat="server" Font-Size="Large" Font-Bold="true" ID="labTitle" Text="上传文件"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    上传文件类型：
                </td>
                <td colspan="3" style="text-align: left">
                    &nbsp;&nbsp;
                    <input type="radio" onclick="Checkchange('photo')" checked="checked" id="photo" name="file" /><label>图片</label>
                    &nbsp;&nbsp;<input type="radio" id="video" onclick="Checkchange('video')" name="file" /><label>视频</label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    文件名称：
                </td>
                <td style="width: 30%; text-align: left">
                    <input type="text" oninput="titlechange()" runat="server" style="width: 256px" onpropertychange="titlechange()"
                        id="txtName" />
                </td>
                <td align="right" style="width: 20%">
                    项目名称：
                </td>
                <td style="width: 30%; text-align: left">
                    <input style="width: 256px;" url="true" oninput="titlechange()"
                    onpropertychange="titlechange()" id="Text1" type="text" runat="server" /><br />
                    <div style="display: none; position: fixed;" id="allSitesBoxHdl" class="classlist"
                        onmouseover="this.style.display='block'" onmouseout="this.style.display='none'">
                        <ul id="allSitesBoxContent">
                        </ul>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <input type="checkbox" id="checkbranch" onclick="titlechange()" checked="checked"
                        runat="server" /><label runat="server" id="lblbranch"></label>&nbsp;&nbsp;
                </td>
                <td colspan="2" style="text-align: left">
                    &nbsp;&nbsp;<input id="checkdate" type="checkbox" onclick="titlechange()" checked="checked"
                        runat="server" /><input id="inputdate" runat="server" oninput="titlechange()" onpropertychange="titlechange()"
                            type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                    <img onclick="WdatePicker({el:'inputdate'})" src="../My97DatePicker/skin/datePicker.gif"
                        align="middle" width="16" height="22">
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    文件主题：
                </td>
                <td style="width: 30%; text-align: left">
                    <input type="text" runat="server" readonly="readonly" style="width: 256px" id="txttitle" />
                </td>
                <td colspan="2">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%">
                    文件路径：
                </td>
                <td style="width: 30%; text-align: left">
                    <input type="file" style="width: 256px" id="mainupload" />
                </td>
                <td colspan="2">
                    &nbsp;
                </td>
            </tr>
            <tbody id="prephoto" style="display: none">
                <tr>
                    <td align="right" style="width: 20%">
                        预览图片：
                    </td>
                    <td style="width: 30%; text-align: left">
                        <input type="file" style="width: 256px" id="preupload" />
                    </td>
                    <td colspan="2">
                        &nbsp;
                    </td>
                </tr>
            </tbody>
            <tr>
                <td align="center" colspan="4">
                    <input type="button" id="uploadclick" onclick="fileupload()" value="上 传" />
                </td>
            </tr>
        </table>
    </div>
    <div id="ui" style="display: none">
        <div id="output">
        </div>
        <div id="progressbar" class="ui-progressbar ui-widget ui-widget-content ui-corner-all"
            style="width: 800px; height: 20px;">
        </div>
        <%--<input id="btn_cancel" type="button" onclick="cancel()" value="取消上传" />--%>
    </div>
    <div style="display: none">
        <asp:HiddenField ID="username" runat="server" />
        <asp:HiddenField ID="userword" runat="server" />
        <asp:HiddenField ID="fileguid" runat="server" />
        <%--<asp:HiddenField ID="branchname" runat="server" />--%>
    </div>
    </form>
    <script type="text/javascript">        Init();</script>
</body>
</html>
